<?php

//  Wtg
//  Copyright (C) 2006 Niels Egberts <niels.egberts@gmail.com>
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
//  02111-1307, USA.

if ( !defined('IS_GAME') ) {
		die ("Hacking attempt");
	}

?>

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head>
<title>My Website</title>
<link rel="stylesheet" type="text/css" href="styles/default/stylesheet.css" />

<script type="text/javascript">

function createRequestObject() {
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{
		ro = new XMLHttpRequest();
	}
	return ro;
}

var http = createRequestObject();

function sndReqInbox() {
	http.open('GET', 'include/message_screen.php?inbox=yes');
	//http.open('GET', 'include/message_screen.php?repicient='+iets+'&message=blaataap');
	http.onreadystatechange = handleResponse;
	http.send(null);
}

function sndReqOpenMail(id) {
	http.open('GET', 'include/message_screen.php?message_id=' + id );
	//http.open('GET', 'include/message_screen.php?repicient='+iets+'&message=blaataap');
	http.onreadystatechange = handleResponse;
	http.send(null);
}

function sndReqCreateMail() {
	http.open('GET', 'include/message_screen.php?create_mail=yes');
	//http.open('GET', 'include/message_screen.php?repicient='+iets+'&message=blaataap');
	http.onreadystatechange = handleResponse;
	http.send(null);
}

function sndReqSendMail(action, action2) {
	http.open('GET', 'include/message_screen.php?repicient='+action+'&message='+action2);
	//http.open('GET', 'include/message_screen.php?repicient='+iets+'&message=blaataap');
	http.onreadystatechange = handleResponse;
	http.send(null);
}

function handleResponse() {
	if(http.readyState == 4){
		var response = http.responseText;
		document.getElementById('uitput').innerHTML = response;
		//document.getElementById('MessBox').value = response;
	}
}

</script>

</head>

<body>

<div class="container">

<div class="header"><h1>Header</h1></div>

<div class="left">
<?php
	require "include/left.php";
?>
</div>

<div class="content">
